package com.chinasoft.tw.controller;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TrueWordController {

    @Autowired
    private TrueWordService trueWordService;

    @GetMapping("/word")
    public Info getWord(){
        return trueWordService.getAllWord();
    }
}
